/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package net.worlds;

import net.worlds.object.Part;
import net.worlds.object.Weld;


public class PartConnection {
    public Part part1;
    public Part part2;
    public Weld weld;

    @Override
    public boolean equals(Object obj)
    {
        if(!(obj instanceof PartConnection))
            return false;
        PartConnection pc = (PartConnection) obj;
        return (pc.part1 == part1 && pc.part2 == part2) || (pc.part1 == part2 && pc.part2 == part1);
    }
}
